package com.zzy.chapter4.template;

import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class CreateOrderLog extends AbstractAuditLogProcessor{
    @Override
    protected OrderAuditLog buildDetails(OrderAuditLog orderAuditLog) {
        HashMap<String, String> detailsMap = new HashMap<>();
        detailsMap.put("payType", "支付宝");
        detailsMap.put("payAmount", "100");
        orderAuditLog.setDetails(detailsMap);
        return orderAuditLog;
    }
}
